import csv


"""List of files that are to be loaded.
The pattern is (dataname,csvfilelocation)"""

pynumbers = ('py','C:\Documents and Settings\James\My Documents\syc\pys.csv')

"""Loads the data from a csv file to be used by the SYC results program"""

reader = csv.reader(open(pynumbers[1],'rb'))

data = []

for row in reader:
    data.append(row)    


def getpy(boatclass):
    fastest,py = None,2**31
    
    for datum in data:
        if datum[0]==boatclass:
            return datum[1]



